import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router'
import store from './store/index'
import './api/mock'
// import { Button, Row , Container } from 'element-ui';

Vue.config.productionTip = false
// Vue.use(Button)
// Vue.use(Row)
Vue.use(ElementUI)

new Vue({
  router,
  store,
  render: h => h(App),
  created(){
    // 登录后重新动态路由
    store.commit('SetMenuRouter', router)
  }
}).$mount('#app')
